package com.jd.cmdb.tsc.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Time;
import java.sql.Timestamp;

/**
 * Created by tianzhengguo on 2016/1/11.
 */
public class Task {
    private String id;
    private String name;
    private String subName;
    private String type;
    private String cronTab;
    private Timestamp startTime;
    private Timestamp nextStartTime;
    private Timestamp createDT;
    private String createUser;
    private short state;
    private String stateDesc;
    private String hostName;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSubName() {
        return subName;
    }

    public void setSubName(String subName) {
        this.subName = subName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getCronTab() {
        return cronTab;
    }

    public void setCronTab(String cronTab) {
        this.cronTab = cronTab;
    }

    public Timestamp getStartTime() {
        return startTime;
    }

    public void setStartTime(Timestamp startTime) {
        this.startTime = startTime;
    }

    public Timestamp getNextStartTime() {
        return nextStartTime;
    }

    public void setNextStartTime(Timestamp nextStartTime) {
        this.nextStartTime = nextStartTime;
    }

    public Timestamp getCreateDT() {
        return createDT;
    }

    public void setCreateDT(Timestamp createDT) {
        this.createDT = createDT;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public short getState() {
        return state;
    }

    public void setState(short state) {
        this.state = state;
    }

    public String getStateDesc() {
        return stateDesc;
    }

    public void setStateDesc(String stateDesc) {
        this.stateDesc = stateDesc;
    }

    public String getHostName() {
        return hostName;
    }

    public void setHostName(String hostName) {
        this.hostName = hostName;
    }

    @Override
    public String toString() {
        return "Task{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", subName='" + subName + '\'' +
                ", type='" + type + '\'' +
                ", cronTab='" + cronTab + '\'' +
                ", startTime=" + startTime +
                ", nextStartTime=" + nextStartTime +
                ", createDT=" + createDT +
                ", createUser='" + createUser + '\'' +
                ", state=" + state +
                ", stateDesc='" + stateDesc + '\'' +
                ", hostName='" + hostName + '\'' +
                '}';
    }
}